<template>
	<view>
		<liu-slide-img :list="piclist" :type="2" :autoplay="autoplay" :interval="interval" @change="change" 
		:heightNumber=heightNumber 	@click="click"></liu-slide-img>
		<luyj-grid-link :list="list" @gridExc="clickGrid"></luyj-grid-link>
	</view>
</template>

<script>
	import data from '@/common/data/data.js'; // 数据
	export default {
		data() {
			return {
				piclist: [{
						src: "/static/images/banner/bgimg2.jpg"
					},
					{
						src: "/static/images/banner/bgimg1.jpg"
					},
					{
						src: "/static/images/banner/bgimg3.jpg"
					}
				],
				autoplay: true,
				interval: 4000,
				heightNumber:0,
				list: data.system_list
			}
		},
		onLoad() {	
			this.heightNumber= (uni.getWindowInfo().screenHeight ) * 0.41
		},
		methods: {
			//当前轮播索引
			change(e) {
				// console.log('==========', e)
			},
			//点击轮播
			click(e) {
				// console.log('点击轮播', e)
			},
			clickGrid: function(e) {
				// console.log("点击宫格", e.currentTarget.dataset.exec);
			}
		}
	}
</script>

<style>

</style>